From b928664471e13505cfcd923a80266e933d0ad91b Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 4 Oct 2011 11:46:25 -0400 Subject: [PATCH] reftests: add a reftest for the CSS :only-child selector https://bugzilla.gnome.org/show_bug.cgi?id=660833 --- tests/reftests/Makefile.am | 3 ++ .../reftests/style-properties-only-child.css | 9 ++++++ .../style-properties-only-child.ref.ui | 32 +++++++++++++++++++ tests/reftests/style-properties-only-child.ui | 32 +++++++++++++++++++ 4 files changed, 76 insertions(+) create mode 100644 tests/reftests/style-properties-only-child.css create mode 100644 tests/reftests/style-properties-only-child.ref.ui create mode 100644 tests/reftests/style-properties-only-child.ui diff --git a/tests/reftests/Makefile.am b/tests/reftests/Makefile.am index 767a4692d3..844643a491 100644 --- a/tests/reftests/Makefile.am +++ b/tests/reftests/Makefile.am @@ -152,6 +152,9 @@ EXTRA_DIST += \ style-properties-nth-child.css \ style-properties-nth-child.ref.ui \ style-properties-nth-child.ui \ + style-properties-only-child.css \ + style-properties-only-child.ref.ui \ + style-properties-only-child.ui \ toplevel-vs-popup.ref.ui \ toplevel-vs-popup.ui \ unresolvable.css \ diff --git a/tests/reftests/style-properties-only-child.css b/tests/reftests/style-properties-only-child.css new file mode 100644 index 0000000000..e652ef7615 --- /dev/null +++ b/tests/reftests/style-properties-only-child.css @@ -0,0 +1,9 @@ +.only-child-ref:nth-child(first):nth-child(last) { + color: blue; + background-color: red; +} + +.only-child-notref:only-child { + color: blue; + background-color: red; +} diff --git a/tests/reftests/style-properties-only-child.ref.ui b/tests/reftests/style-properties-only-child.ref.ui new file mode 100644 index 0000000000..ff053320aa --- /dev/null +++ b/tests/reftests/style-properties-only-child.ref.ui @@ -0,0 +1,32 @@ + + + + + False + popup + 300 + 300 + + + True + False + vertical + + + True + True + Foo + + + + False + True + 0 + + + + + + diff --git a/tests/reftests/style-properties-only-child.ui b/tests/reftests/style-properties-only-child.ui new file mode 100644 index 0000000000..0f769cf5ce --- /dev/null +++ b/tests/reftests/style-properties-only-child.ui @@ -0,0 +1,32 @@ + + + + + False + popup + 300 + 300 + + + True + False + vertical + + + True + True + Foo + + + + False + True + 0 + + + + + + -- 2.30.2